package com.sxt.practiceapplication.entity.user;

public class UserQuery {

    private String username;

    private String tel;

    private String sex;

    private String email;

    private String nickname;

    public String getUsername() {
        return username;
    }

    public UserQuery setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getTel() {
        return tel;
    }

    public UserQuery setTel(String tel) {
        this.tel = tel;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public UserQuery setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public UserQuery setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getNickname() {
        return nickname != null ? nickname : "请设置昵称";
    }

    public UserQuery setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }
}
